package com.k8.rpc;

import com.k8.rpc.url.URL;
import com.k8.remoting.RemotingServer;

import java.util.Map;

public interface ProtocolServer {

    default RemotingServer getRemotingServer() {
        return null;
    }

    default void setRemotingServers(RemotingServer server) {
    }

    String getAddress();

    void setAddress(String address);

    default URL getUrl() {
        return null;
    }

    default void reset(URL url) {
    }

    void close();

    Map<String, Object> getAttributes();
}
